﻿using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
using Xms.Abp.Modularity;
using Xms.Abp.Smsing.Aliyun.Localization;

namespace Xms.Abp.Smsing.Aliyun;

[DependsOn(typeof(XmsAbpSmsingModule))]
public class XmsAbpSmsingAliyunModule : XmsModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<AbpVirtualFileSystemOptions>(options =>
        {
            options.FileSets.AddEmbedded<XmsAbpSmsingAliyunModule>();
        });

        Configure<AbpLocalizationOptions>(options =>
        {
            options.Resources
                .Add<AliyunSmsingResource>("en")
                .AddVirtualJson("/AliyunSmsing/Localization/Resources");
        });
    }
}

